<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
</body>
<script>
    // 实现两个数组拼接,返回一个新数组
function arrJoin(arr1,arr2){
    // your implement
}
//测试用例
var arr1 = ['1','2','3'];
var arr2 = ['3','6','1']
console.log(arrJoin(arr1,arr2)); -> ['1','2','3','3','6','1']

// 利用reduce()实现两个数组归并
function arrMerge(arr1,arr2){
    // your implement
}

//测试用例
var arr1 = ['1','2','3'];
var arr2 = ['3','6','1']
console.log(arrMerge(arr1,arr2)); -> ['1','2','3','6']


// 使用map()实现数组遍历，让数组中每一个元素都乘以2
function arrDouble(arr){
    // your implement
}
//测试用例
console.log(arrDouble['1','2','3']); -> ['2','3','6']

// 利用filter()筛选出数组中大于10的元素
function largerThan10(arr){
    // your implement
}
//测试用例
console.log(largerThan10['1','2','3']); -> []
console.log(largerThan10['1','10','11']); -> ['11']

// 封装数组去重函数,去除数组中重复的元素,
// 该方法添加到数组原型方法上去
function norepeat = function(){
   // your implement
}

//测试用例
var arr = ['a','ab','a'];
console.log(arr.norepeat()); -> ['a','ab']

// 实现方法检测数组是否包含特定值
Array.prototype.inArray = function(value){
  //your implement
}

//测试用例
var arr = ['a','ab','a'];
console.log(arr.inArray('b')); -> false
console.log(arr.inArray('a'));->true

var arr = ['a','ab','a'];
console.log(inArray('b'));->false
console.log(arr.inArray('a'));->true
</script>
</html>